package com.woody.aggregate.app.web.contract;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woody.aggregate.contract.dto.ContractTemplatePageDTO;
import com.woody.aggregate.contract.vo.ContractTemplateVO;
import com.woody.aggregate.domain.contract.ContractTemplate;
import com.woody.base.model.Response;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author hzy
 * @date 2025/2/26 下午2:21
 */
@RestController
@RequestMapping("/contractTemplate")
@AllArgsConstructor
@Api(tags = "合同模版接口")
@Slf4j
public class ContractTemplateController {


    @GetMapping("/page")
    @ApiOperation(value = "模版列表", notes = "模版列表")
    public Response<Page<ContractTemplateVO>> page(ContractTemplatePageDTO dto){
        Page<ContractTemplateVO> pageList = ContractTemplate.pageList(dto);
        return Response.success(pageList);
    }
}
